package demo3;

import java.util.Random;

public class RandomTest {
    public static void main(String[] args){
        int start ;
        int end ;
        int times ;
        randomTest(1,9,5);

    }
    private static void randomTest(int start,int end,int times){
        Random r = new Random();
        for(int i = 0;i < times;i++){
            System.out.println(r.nextInt(start,end));
        }

    }
}
